<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/custom.form.css">
</head>
<body>
<div>
    <table  id="jbxcj_table" lay-filter="jbxcj_table"></table>
</div>
</body>
<script src="/layui/layui.all.js"></script>
<script src="/js/core.util.js"></script>
<script>
    //获取token
    var token = CoreUtil.getData("access_token");
    //地址栏转义token中的#号
    var tokenQuery = token.replace("#", "%23");
    var tableIns1;
    var table = layui.table;
    var form = layui.form;
    var layer = layui.layer;
    var $ = jQuery = layui.jquery;
    var laydate = layui.laydate;
    var tree = layui.tree;
    var startTime = null;
    var endTime = null;

    var currentDate = new Date();
    var currentYear=currentDate.getFullYear();
    var endYear = currentYear+4;
    layui.config({
        base: '/'
    }).extend({
        eleTree: 'layui-ext/eleTree/eleTree',
        tableMerge: 'layui-ext/tableMerge/tableMerge'
    }).use(['table', 'laypage', 'layer', 'laydate', 'tree', 'eleTree','tableMerge'], function () {
        tableIns1 = table.render({
            elem: '#jbxcj_table'
            , contentType: 'application/json'
            , headers: {"authorization": token}
            ,where:{statisticsYear:currentYear,statisticsMonth:'0'}
            , url: '/statistics/jbxcj' //数据接口
            , method: 'POST',title:'入库统计（万元）'
            , parseData: function (res) { //将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.msg, //解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null : res.data //解析数据列表
                }
            }
            , cols: [
                [
                    // {type: 'checkbox', fixed: 'left'},
                    {field: 'swjgmc',title: '税务机关',align:'center',rowspan:2},
                    {title: '稽比析成绩',align:'center',colspan:12},
                ],
                [
                    {field: 'cbhs', title: '查办户数',align:'center'}
                    ,{field: 'rjhs', title: '人均户数', align:'center'}
                    ,{field: 'rjcb', title: '人均查补',align:'center'}
                    ,{field: 'hjcb', title: '户均查补', align:'center'}
                    ,{field: 'jaql', title: '积案清理', align:'center'}
                    ,{field: 'jaqk', title: '结案情况', align:'center'}
                    ,{field: 'rkqk', title: '入库情况', align:'center'}
                    ,{field: 'ccsc', title: '查处时长', align:'center'}
                    ,{field: 'eyhs', title: '恶意户数',align:'center'}
                    ,{field: 'eysr', title: '恶意收入', align:'center'}
                    ,{field: 'qt', title: '其它', align:'center'}
                    ,{field: 'hj', title: '合计', align:'center'}
                ]
            ], toolbar: '#toolbar'
            ,done: function(res, curr, count){
                // tableMerge.render(this)
            }
        });
    });

</script>
</html>